package com.pmcc.core.repository;

import com.pmcc.core.entity.Role;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by Tomas on 2018/4/9.
 */
public interface RoleRepository extends JpaRepository<Role,String> {
    Page<Role> findAll(Specification<Role> spec, Pageable var1);
    List<Role> findByCode(String code);
    List<Role> findByDelFlagAndFettle(Integer delFlag,Integer fettle);
}
